package org.chen.model.response;

import lombok.Data;

/**
 * @Author: 陈亮
 * @Date: 2019/3/24 18:05
 */
@Data
public class ApiResult<T> {

    private int code;
    private String msg;
    private T data;

    public ApiResult() {
    }


    public ApiResult(int code, String msg, T data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public ApiResult(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
